using System;
using Kollektiv.DB;
using System.Runtime.Serialization;

namespace Kollektiv.DataModel
{
	[DataContract]
	public class Session:DataObject
	{		
		[DataMember]
		public virtual User Owner{ get; set; }
		
		[DataMember]
		public virtual DateTime CreationTime{ get; set; }
		
		[DataMember]
		public virtual DateTime LastActivityTime{ get; set; }
		
		public virtual void SetActivity ()
		{
			this.LastActivityTime = DateTime.UtcNow;
		}
	}
}

